package edu.iu.pti.cj.themis.core;

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;

import javax.xml.namespace.QName;

public class TestClient
{
   public static void main(String [] args) {
       try {
           String endpoint = 
                    "https://test.uisapp2.iu.edu/kr-snd/remoting/KimIntegrationServiceSOAP";
     
           Service  service = new Service();
           Call     call    = (Call) service.createCall();

           call.setTargetEndpointAddress( new java.net.URL(endpoint) );
           call.setOperationName(new QName("http://rice.kuali.org/wsdl/kim", "readEntity") );

           // Call to addParameter/setReturnType as described in user-guide.html
           //call.addParameter("testParam",
           //                  org.apache.axis.Constants.XSD_STRING,
           //                  javax.xml.rpc.ParameterMode.IN);
           //call.setReturnType(org.apache.axis.Constants.XSD_STRING);

           String[] arguments = {"0002361885"};
           String ret = (String) call.invoke("readEntity", arguments);

           System.out.println( ret );
       } catch (Exception e) {
           System.err.println(e.toString());
       }
   }
}

